package com.homework2;

import java.util.LinkedHashSet;
import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        LinkedHashSet<String> linkedHashSet = new LinkedHashSet<>();
        char[] chars=input.toCharArray();
//        System.out.println(chars);
        for (int i = 0; i < chars.length; i++) {
            linkedHashSet.add(String.valueOf(chars[i]));
        }
        for (String s : linkedHashSet) {
            System.out.print(s+" ");
        }
    }
}
